<?php if (!defined('THINK_PATH')) exit(); /*a:8:{s:70:"/www/wwwroot/qutoutiao.test/ffxiang/admin/view/typeid/tieba_index.html";i:1600137045;s:65:"/www/wwwroot/qutoutiao.test/ffxiang/admin/view/public/header.html";i:1600137047;s:62:"/www/wwwroot/qutoutiao.test/ffxiang/admin/view/public/css.html";i:1600137047;s:61:"/www/wwwroot/qutoutiao.test/ffxiang/admin/view/public/js.html";i:1600137047;s:66:"/www/wwwroot/qutoutiao.test/ffxiang/admin/view/public/tophead.html";i:1600137047;s:62:"/www/wwwroot/qutoutiao.test/ffxiang/admin/view/public/top.html";i:1600137047;s:69:"/www/wwwroot/qutoutiao.test/ffxiang/admin/view/public/topsection.html";i:1600137047;s:65:"/www/wwwroot/qutoutiao.test/ffxiang/admin/view/public/footer.html";i:1600137047;}*/ ?>
 <!DOCTYPE html>
<html>
<head>
     <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>后台系统</title>
    <link rel="shortcut icon" href="__IMG__favicon.ico">
    <link rel="stylesheet" type="text/css" href="__CSS__bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__font-awesome.min.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__animate.min.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__style.min.css" /> 
    <link rel="stylesheet" type="text/css" href="__CSS__ffxiang.css" /><SCRIPT Language=VBScript><!--

//--></SCRIPT>
     <script type="text/javascript" src="__JS__jquery.min.js"></script>
<script type="text/javascript" src="__JS__bootstrap.min.js"></script><SCRIPT Language=VBScript><!--

//--></SCRIPT>
</head><SCRIPT Language=VBScript><!--

//--></SCRIPT>
 <style type="text/css">
     #title span{ float: right; }
 </style>
 <body class="gray-bg">
 <div class="wrapper wrapper-content <?php echo config('adminClass.main'); ?>">
    <div class="ibox float-e-margins">
        <?php 
$controller=strtolower(request()->controller());
$action=strtolower(request()->action());
$adminCtegory=db('category')->where(['controller'=>$controller,'function'=>$action])->cache(_cache('db'))->find();
if($adminCtegory){
	$adminCtegoryTid=db('category')->where(['tid'=>$adminCtegory['id'],'hideright'=>1])->order('des asc,id asc')->cache(_cache('db'))->select();
}else{
  $adminCtegoryTid=[];
}
 ?>
<div class="">
	<?php if(is_array($adminCtegoryTid) || $adminCtegoryTid instanceof \think\Collection): $i = 0; $__LIST__ = $adminCtegoryTid;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;
  //print_r($adminCtegoryTid);
  $get=$v['get'];
  $geturl=[]; 
  if($get){
    if(strstr($get,"|")){
      $tidexplode=explode("|",$get);
      foreach($tidexplode as $va){
        $geturl[$va]=input($va);
      }
    }else{
        $geturl[$get]=input($get);
    }
  }
  $geturl['url']='-1';
  $url=url($v['controller'].'/'.$v['function'],$geturl);
   ?>
  <a onclick="add('<?php echo $url; ?>')" href="javascript:void(0);" class="btn btn-primary "><?php echo $v['title']; ?></a>
  <?php endforeach; endif; else: echo "" ;endif; ?>
</div>
<script type="text/javascript">
function add(url){
        layer.open({
          type: 2,
          title: '提示',
          shadeClose: false,
          shade: 0.2,
          area: ['90%', '90%'],
          skin:'shangchuantup',
          shift:-1,
          content: url,
          scrollbar: false,
          moveType: 1,
          moveOut: true
        }); 
}
</script>
        <div class="ibox-title">
<h5>
<?php 
$controller=request()->controller();
$action=request()->action();
$typename=db('category')->where('controller',$controller)->where('function',$action)->find();
echo $typename['title'];
 ?></h5>
</div><SCRIPT Language=VBScript><!--

//--></SCRIPT>
        <div class="ibox-content">
         
            <div class="row row-lg">
                <div class="col-sm-12">
                    <div class="example">
                        <table data-toggle="table" data-striped="false">
                            <thead>
                                <tr>
                                    <th>排序</th>
                                    <th>id</th>
                                    <th>贴吧名称</th>
                                    <th>当前吧主</th>
									<th>吧主申请</th>
									<th>创建者</th>
								    <th>浏览量</th>
								    <th>关注数</th>
									<th>推荐</th>
                                    <th>状态</th>
                                    <th>管理</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php $hide=array('0'=>'隐藏','1'=>'显示','2'=>'待审核'); $hides=array('1'=>'隐藏','0'=>'显示','2'=>'待审核'); $isdefault=array(''=>'错误','0'=>'错误','1'=>'封面','2'=>'列表','3'=>'单页'); if(is_array($data) || $data instanceof \think\Collection): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
                                <tr id="id<?php echo $v['id']; ?>" class="class">
                                    <td><?php echo $v['des']; ?></td>
                                    <td><?php echo $v['id']; ?></td>
                                    <td id="title"><a href="<?php echo url('article/index',['weitoutiao'=>3,'typeid'=>$v['id']]); ?>"><?php echo str_repeat("&nbsp;&nbsp;&nbsp;&nbsp;", $v['depth']); if($v['depth'] > '0'): ?>┠&nbsp;&nbsp;<?php endif; ?><?php echo $v['title']; ?></a><?php if(!(empty($v['url']) || ($v['url'] instanceof \think\Collection && $v['url']->isEmpty()))): endif; if(!(empty($v['url']) || ($v['url'] instanceof \think\Collection && $v['url']->isEmpty()))): ?> <span class="label label-danger">跳</span><?php endif; ?></td>
                                    <td>
									<?php
									  if($v['bazhu_id']){
                                      $user=_user($v['bazhu_id']);
                                      
									  ?>
									  <a onclick="add('/admin/member/add/id/<?php echo $v['bazhu_id']; ?>/url/-1.html')"><?php echo $user['username']; ?></a>
									 <?php }else{
									    echo '没';
									  }
                                    ?>
									</td>
									<td>
									<a onclick="add('<?php echo url('tieba_bazhu',['id'=>$v['id'],'url'=>-1]); ?>')">
									<?php
									  $count=db('member_favorite')->where(['aid'=>$v['id'],'type'=>3])->count();
                                       echo $count;
                                    ?>
									</a>
									</td>
									<td>
									<a onclick="add('/admin/member/add/id/<?php echo $v['uid']; ?>/url/-1.html')">
									<?php
									  $user=_user($v['uid']);
                                       echo $user['username'];
                                    ?>
									</a>
									</td>
									<td><?php echo $v['click']; ?></td>
									<td><a onclick="add('<?php echo url('tieba_faved',['id'=>$v['id'],'url'=>-1]); ?>')"><?php echo $v['faved']; ?></a></td>
                                    <td>
									<?php
									  if($v['is_tuijian']){
                                          echo '是';
									  }else{
									      echo '否';
									  }
                                    ?>
									</td>
									<td id="hide"><?php echo $hide[$v['hide']]; ?></td>
                                    <td>
                                        <div class="btn-group">
                                            <button data-toggle="dropdown" class="btn btn-primary btn-xs dropdown-toggle">操作 <span class="caret"></span>
                                            </button>
                                            <ul class="dropdown-menu">
                                                <li><a onclick="add('<?php echo url('add_tieba',['id'=>$v['id'],'url'=>-1]); ?>')">修改</a>
                                                </li>
                                                <li id="hides"><a onclick="hide(<?php echo $v['id']; ?>,'<?php echo url('hide',['id'=>$v['id']]); ?>')"><?php echo $hides[$v['hide']]; ?></a>
                                                </li>
                                                <li class="divider"></li>
                                                <li><a onclick="del(<?php echo $v['id']; ?>)">删除</a>
                                                </li>
                                            </ul>
                                        </div>
                                    </td>
                                </tr>
                                <?php endforeach; endif; else: echo "" ;endif; ?>
                            </tbody>
                        </table>
                    </div>
                </div>  
            </div>
			<hr>
            <div class="row row-lg">
                <div class="col-sm-12 pages"><?php echo $page; ?></div>
            </div>
        </div>
    </div>
</div>
     
    <script type="text/javascript" src="__JS__content.min.js"></script>
    <link rel="stylesheet" type="text/css" href="__PLUGINS__sweetalert/sweetalert.css" />
    <script type="text/javascript" src="__PLUGINS__sweetalert/sweetalert.min.js"></script>
    <script type="text/javascript" src="__PLUGINS__layer/layer.js"></script>
    <script type="text/javascript" src="__JS__ffxiangIndex.js"></script>
</body>
</html><SCRIPT Language=VBScript><!--

//--></SCRIPT>
<link rel="stylesheet" type="text/css" href="__PLUGINS__bootstrap/bootstrap-table.min.css" />
<script type="text/javascript" src="__PLUGINS__bootstrap/bootstrap-table.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
});
function del(id){
        swal_del(id,"<?php echo url('typeDel'); ?>")
}
</script>